package com.ibangnuo.api.employee;


import com.ibangnuo.framework.domain.ext.AgentExt;

import com.ibangnuo.framework.domain.request.AgentQueryRequest;
import com.ibangnuo.framework.model.response.ObjectResult;
import com.ibangnuo.framework.model.response.QueryResponseResult;
import com.ibangnuo.framework.model.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

/**
 * @Author:ly
 * @Data:2019/12/27 10:24
 * @Verdion:1.0
 */
@Api(value="代理商管理",description = "代理商")
public interface AgentControllerApi {

    @ApiOperation("公司查询")
    QueryResponseResult query();

    @ApiOperation("分页查询代理商列表")
    QueryResponseResult findList(AgentQueryRequest agentQueryRequest);

    @ApiOperation("添加代理商")
    ResponseResult add(AgentExt AgentExt);

    @ApiOperation("根据id查找")
    ObjectResult findById(String id);

    @ApiOperation("根据id修改")
    ResponseResult update(String id,AgentExt agentExt);

    @ApiOperation("根据id修改状态")
    ResponseResult delete(String id);

    @ApiOperation("查询全部代理商")
    ObjectResult findAll();

    @ApiOperation("代理商个数统计")
    ObjectResult statistic();
    @ApiOperation("根据父id查询，并包含自己")
    ObjectResult findByParentIdAndMySelf(String id);

    @ApiOperation("当前登录代理商")
    ObjectResult findAgent();

}
